package cn.passlink.www.Mapper;

import cn.passlink.www.Enity.Comment;
import cn.passlink.www.Enity.sysUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CommentDao {


   boolean   pullArticleCommentId( String comment_id, String article_id);
    //查找用户id
 String  getUserIdBycommentId(String comment_id);
//写入用户与 Comments关系表
    boolean  pullUserCommentId(String comment_id,String user_id);
//新增
    boolean insertComment(Comment comment);
//
boolean pullMainFollow(String main_comment_id,String follow_comment_id);

List<Comment> getCommentsByArticleId(String article_id);

sysUser findUserById (String comment_id);

List<Comment> findCommentFollowIds(String commentMainId);

String getArticleIdByCommentId(String comment_id);
}
